package com.zhang.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

@Api(tags = "入库订单购车实体类")
@Data
@NoArgsConstructor
@TableName("t_inputcar")
public class InputCarBean {
    @ApiModelProperty("入库购物车id")
    @TableId(value = "pk_inputCarId",type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("商品编号")
    @TableField(value = "ic_number")
    private String number;

    @ApiModelProperty("商品名")
    @TableField(value = "ic_name")
    private String name;

    @ApiModelProperty("厂家")
    @TableField(value = "ic_mill")
    private String mill;

    @ApiModelProperty("建议采购价")
    @TableField(value = "ic_purchase")
    private Integer purchase;

    @ApiModelProperty("建议销售价")
    @TableField(value = "ic_sale")
    private Integer sale;

    @ApiModelProperty("采购数量")
    @TableField(value = "ic_count")
    private Integer count;

    @ApiModelProperty("商品图片")
    @TableField(value = "ic_img")
    private String img;

    @ApiModelProperty("商品所属类别")
    @TableField("fk_typeId")
    private Integer typeId;

    @ApiModelProperty("采购员id")
    @TableField("fk_userId")
    private Integer userId;

    @ApiModelProperty("供应商id")
    @TableField("fk_supplierId")
    private Integer supplierId;

    public InputCarBean(String number, String name, String mill, int purchase, int sale, int count, String img, int typeId, int userId, int supplierId) {
        this.number = number;
        this.name = name;
        this.mill = mill;
        this.purchase = purchase;
        this.sale = sale;
        this.count = count;
        this.img = img;
        this.typeId = typeId;
        this.userId = userId;
        this.supplierId = supplierId;
    }

    @Override
    public String toString() {
        return "InputCarBean{" +
                "id=" + id +
                ", number='" + number + '\'' +
                ", name='" + name + '\'' +
                ", mill='" + mill + '\'' +
                ", purchase='" + purchase + '\'' +
                ", sale='" + sale + '\'' +
                ", count='" + count + '\'' +
                ", img='" + img + '\'' +
                ", typeId=" + typeId +
                '}' + "\n";
    }
}
